﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WanPiJie.WebSite.WebControls
{
	public partial class TabPanel : System.Web.UI.UserControl
	{
		protected string _ActiveTableName;
		/// <summary>
		/// 激活的标签名称
		/// </summary>
		public string ActiveTabName
		{
			get
			{
				return _ActiveTableName;
			}
			set
			{
				if (value != null)
				{
					_ActiveTableName = value.ToLower();
				}
			}
		}

		protected void Page_Load(object sender, EventArgs e)
		{

		}

		protected string ShowClass(string tabName)
		{
			if (tabName == null) return "";
			tabName = tabName.ToLower();

			if (this.ActiveTabName == tabName)
			{
				return "class=\"active\"";
			}
			return "";
		}
	}
}